package com.isoft.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Configuration
public class JmsAspect {
	
	@Value("${spring.activemq.open}")
	private boolean open;
	
	@Before("execution(public * com.isoft.jms.**.*(..))")
	public void openJms() {
		
		System.out.println("11111111111111111111");
		/*if (!open)
			return;*/
	}

}
